import Router from "koa-router";
import config from "../config";
import {middlewareWechat} from "../wechat-lib/middleware";

module.exports = app => {
  const router = new Router();
  router.all("/wechat-hear",middlewareWechat(config));

  app.use(router.routes()).use(router.allowedMethods());
};
